<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let web="www.cdtw110.com520";
        //取其中的数字
    //  let nums=   [...web].filter((v)=> !Number.isNaN(parseInt(v)));
    //  console.log(nums.join(""));

    
    //正则表达式来找
      console.log(web.match(/\d/g).join(""));//110520
    </script>
</body>
</html>